import fetch from '@/utils/fetch'

export function apiGetOverviewList(listQuery) {
  return fetch({
    url: '/api/v1/overview/list',
    method: 'GET',
    params: listQuery
  })
}

export function apiGetOverviewBatchList(listQuery) {
  return fetch({
    url: '/api/v1/overview/batch/list',
    method: 'GET',
    params: listQuery
  })
}

// 打印返厂清单
export function apiPointOverviewWrite(paramsPost) {
  return fetch({
    url: '/api/v1/overview/export/backFactory',
    method: 'POST',
    data: paramsPost,
    responseType: 'arraybuffer'
  })
}

// 网点批次信息一览导出
export function apiGetPointOverviewListExport(query) {
  return fetch({
    url: '/api/v1/overview/export',
    method: 'POST',
    data: query,
    responseType: 'arraybuffer'
  })
}

